* {
    /* 初始化 */
    margin: 0;
    padding: 0;
}
body {
    /* 100%窗口高度 */
    height: 100vh;
    // width: 100vw;
    /* 弹性布局 水平+垂直居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
}

.swipe {
    /* 相对定位 */
    position: relative;
    width: 100%;
    /* 溢出隐藏 */
    overflow: hidden;
    .bg {
        /* 绝对定位 */
        position: absolute;
        width: 500%;
        height: 100%;
        z-index: 1;
        background-image: url('../../images/cloud_music/1.jpg');
        background-size: 6000px;
        background-position: center center;
        /* 模糊滤镜 */
        filter: blur(140px);
    }
    section {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 1000px;
        height: 400px;
        margin: 0 auto;
    }
    .img-box {
        width: 100%;
        height: 100%;
        .img {
            width: 100%;
            height: 100%;
            /** 保持原有尺寸比例，裁切长边 **/
            object-fit: cover;
        }
    }
    .select {
        position: absolute;
        width: 100%;
        height: 30px;
        line-height: 30px;
        bottom: 20px;
        text-align: center;
        .item {
            display: inline-block;
            width: 10px;
            height: 10px;
            background-color: #fff;
            border-radius: 50%;
            margin: 0 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 10.4);
            // 鼠标移入指示器
            &:hover {
                background-color: #ff4400;
            }
            // 指示器选中状态
            &.checked {
                background-color: #ff4400;
            }
        }
    }
    // 两侧的翻动按钮
    .btn {
        width: 40px;
        height: 100px;
        color: #fff;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 50px;
        background-color: rbga(0, 0, 0, 0.05);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 3;
        cursor: pointer;
        // 动画过渡
        transition: 0.3s;
        &.left {
            left: -60px;
        }
        &.right {
            right: -60px;
        }
        &:hover {
            background-color: rbga(0, 0, 0);
        }
    }
}

@media screen and (max-width: 1620px) {
    .swipe .btn {
        &.left {
            left: 20px;
        }
        &.right {
            right: 20px;
        }
    }
}
